package top.glkj.hms.controller.toll;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import top.glkj.hms.exception.DefineException;
import top.glkj.hms.utils.Result;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/1/7 23:52
 * 收费管理
 */
@Api(tags = "收费管理")
@RestController
@RequestMapping("/toll1")
public class TollController {
    @ApiOperation("获取收费项目")
    @GetMapping("{id}")
    public Result getToll(@PathVariable(name = "id") long id) throws DefineException {
        //todo
        throw new DefineException("no implement");
    }
    @ApiOperation("获取所有收费项目")
    @GetMapping
    public Result getAllToll() throws DefineException {
        //todo
        throw new DefineException("no implement");
    }
    @ApiOperation("分页获取所有收费项目")
    @GetMapping("/{size}/{page}")
    public Result getAllTollByPageAndSize(@PathVariable(name = "page") int page,@PathVariable(name = "size") int size)throws DefineException{
        //todo
        throw new DefineException("no implement");
    }
    @ApiOperation("添加收费项目")
    @PostMapping
    public Result addToll() throws DefineException { //todo
        throw new DefineException("no implement");}
    @ApiOperation("更新收费项目")
    @PutMapping
    public Result updateToll() throws DefineException { //todo
        throw new DefineException("no implement");}
    @ApiOperation("删除收费项目")
    @DeleteMapping("/delete")
    public Result deleteToll() throws DefineException { //todo
        throw new DefineException("no implement");}
    @ApiOperation("移除收费项目")
    @DeleteMapping
    public Result removeToll() throws DefineException { //todo
        throw new DefineException("no implement");}
}
